class GameController < ApplicationController
  def show
    if g = GameFile.find_by_id(params[:id])
      g.click_num = g.click_num + 1
      g.save
      redirect_to "/games/" + g.file_path + "/" + g.index_path
    else
      redirect_to "/404.html"
    end
  end
end
